package com.leiyuee.JavaBase;

public class Salary extends Employee{

    private double salary;
    public Salary(String name, String address, int num,double salary) {
        super(name, address, num);
        setSalary(salary);
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    @Override
    public String doSth() {
        return "子类1实现";
    }
}
